import { http } from "@/utils/http";

// 获取能源绩效
export const getViewPerformanceAPI = data => {
  return http.request("post", "/energy/consumeMeasure/viewPerformance", {
    data
  });
};

// 分页查询产品产量列表
export const listOutputAPI = data => {
  return http.request("post", "/energy/consumeMeasure/listOutput", {
    data
  });
};

// 删除产品常量
export const delOutputAPI = data => {
  return http.request("post", "/energy/consumeMeasure/delOutput", {
    data
  });
};

// 新增-更新产品产量
export const updateOutputAPI = data => {
  return http.request("post", "/energy/consumeMeasure/updateOutput", {
    data
  });
};

// 能源绩效基准线
export const getLineDirectrixAPI = data => {
  return http.request("post", "/energy/supplyLoad/lineDirectrix", {
    data
  });
};

// 能源目标新的接口
// 1.分页查询能源绩效基准列表 list
export const getListStandardAPI = data => {
  return http.request("post", "/energy/performance/listStandard", {
    data
  });
};

// 2.view能源绩效基准 viewStandard
export const getViewStandardAPI = data => {
  return http.request("post", "/energy/performance/viewStandard", {
    data
  });
};

// 3.新增并更新能源绩效基准 updateStandard
export const updateStandardAPI = data => {
  return http.request("post", "/energy/performance/saveStandard", {
    data
  });
};

// 4.删除能源绩效基准 delStandard
export const delStandardAPI = data => {
  return http.request("post", "/energy/performance/delStandard", {
    data
  });
};

// 5.试算能源绩效基准 trialStandard
export const trialStandardAPI = data => {
  return http.request("post", "/energy/performance/trialStandard", {
    data
  });
};
